export type FactoryTarget = 'energy' | 'G' | MineralConstant | CommodityConstant

/**
 * 工厂 memory
 */
export interface FactoryMemory {
    // 目标资源
    target?: FactoryTarget
    // 冷却时间
    cooldown?: number
}

/**
 * 不同等级工厂对应的房间
 */
export interface FactoryRoomMap {
    [level: number]: Set<string>
}

declare global {
    interface RoomMemory {
        factory: FactoryMemory
    }
}
